<?php
	require_once(dirname(__FILE__)."/AlertiaAPIClient.class.php");
	
	$apikey = "APIKEY";
	$endpoint = 'https://pre.api.alertia.net/v1';

	$client = new AlertiaAPIClient($apikey, $endpoint);
	
	/**
	 * sensor list
	 */ 
	$response = $client->connect_api('/sensor/list', array());
	if(!$response){
		die($client->get_error_code().': '.$client->get_error_message());
	}
	
	print_r($response);

	echo "<br><br>";
	
	/**
	 * recipient list
	 */ 
	$response = $client->connect_api('/recipient/list', array());
	if(!$response){
		die($client->get_error_code().': '.$client->get_error_message());
	}
	
	print_r($response);
